package com.jiyun.h2303b.controller;

import com.jiyun.h2303b.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("order")
public class OrderController {

    @Autowired
    private OrderService orderService;

    @RequestMapping("create")
    public void create(int userId,String commodityCode,int count){
        orderService.create(userId, commodityCode, count);
    }
}
